#! /usr/bin/python

###-----------------------------------------------------------###
# 9/12/07                                                       #
#test7.py -- test floating math 	                        #
#								#
#                                                               #
###-----------------------------------------------------------###

print 1.5 + 2
print 2 + 1.5
print 1.5 + 1.5
print 1.1 + 2.0

print 10-50.3
print -90.5-9934.6
print 5.5-5.5
print 5.5-.5
print 5.5-0.5

print 1+5-6.0+9.75-6.78
print 104.234-234.523+23422.5542+234

print 4*6.0
print 45.34*-234.55

print 1/2
print 152/45
print 15/5
print 1.0/2
print 5.0/5.0

print 5**5
print 5.1**6
print 6**6.2
print 7**-4

print 5%4
print 5.6%3
print 3.5%2
print 3.5%-2


print ((4/4)/(3.0/1.0)-6+10.54*153.54)-9.0+4
print (4.0)-4+12.6*4, 34/8.9+26.3*78+14.2, 12.5, -12.7, -135+89.6/63.8++464.6

print 2147483648.0
print 0.0
print -2147483648.0
print 2147483647.0
print -2147483647 + 2147483648.0
print 2147483647.0 + -2147483648.0
print 1 ** 2147483647.0
print -10 + 5 + 2147483647.0
print 2147483647.0 + 5 - 10
print 2147483647.0 ** ( 2147483647.0 - 2147483646.0 )

print 2147483648.9
print 0.9
print -2147483648.9
print 2147483647.9
print -2147483647.9 + 2147483648.9
print 2147483647.9 + -2147483648.9
print 1 ** 2147483647.9
print -10.9 + 5 + 2147483647.9
print 2147483647.9 + 5 - 10
print 2147483647.9 ** ( 2147483647.9 - 2147483646.9 )
